#include "stdafx.h"
#include "Stand.h"
#include <string>
#ifndef EMPTY
#define EMPTY 0
#define OCCUPIED 1
#endif
using namespace std;

/*------------------------------------------------------------
/ Stand Class
/ By: Mark Freedman
/ Date: February 26 2011
/ Description: A definition of the Stand Class. Defines the
/ attributes stand identifier and stand status with a number
/ of getter and setter methods for these attributes
------------------------------------------------------------*/

/*------------------------------------------------------------
/ Constructor
/ By: Mark Freedman
/ Date: February 26 2011
/ Description: Instantiates any stand object
/ Paramneters: stand ID
/ Return: N/A
------------------------------------------------------------*/
Stand::Stand(string stID)
{
	standID = stID;
	standStatus = EMPTY;
}

/*------------------------------------------------------------
/ Constructor
/ By: Mark Freedman
/ Date: February 26 2011
/ Description: Instantiates any stand object
/ Paramneters: stand ID
/ Return: N/A
------------------------------------------------------------*/
Stand::Stand()
{
	standID = "";
	standStatus = EMPTY;
}

/*------------------------------------------------------------
/ Destructor
/ By: Mark Freedman
/ Date: February 26 2011
/ Description: Destroys a stand object
/ Paramneters: N/A
/ Return: N/A
------------------------------------------------------------*/
Stand::~Stand(void)
{
}

/*------------------------------------------------------------
/ getStandID
/ By: Mark Freedman
/ Date: February 26 2011
/ Description: returns the stand's identifier
/ Paramneters: N/A
/ Return: stand Identifier
------------------------------------------------------------*/
string Stand::getStandID (void){
	return standID;
}

/*------------------------------------------------------------
/ getStandStatus
/ By: Mark Freedman
/ Date: February 26 2011
/ Description: returns the stand's current status (occupied
/ or empty)
/ Paramneters: N/A
/ Return: stand status
------------------------------------------------------------*/
int Stand::getStandStatus (void){
	return standStatus;
}

/*------------------------------------------------------------
/ setStandEmpty
/ By: Mark Freedman
/ Date: February 26 2011
/ Description: sets the stand status to empty
/ Paramneters: N/A
/ Return: N/A
------------------------------------------------------------*/
void Stand::setStandEmpty (void){
	standStatus = EMPTY;
}

/*------------------------------------------------------------
/ setStandEmpty
/ By: Mark Freedman
/ Date: February 26 2011
/ Description: sets the stand status to occupied
/ Paramneters: N/A
/ Return: N/A
------------------------------------------------------------*/
void Stand::setStandOccupied (void){
	standStatus = OCCUPIED;
}
